<template>
  <div class="shuxin">
  <h2>{{str}}</h2>
   <button @click="one">逆转世界</button>
  </div>
</template>

<script>
export default { 
  name:'SHUXIN',
data() {
  return {
  str:'你好世界'
  }
},
methods: {
  one(){
    this.str=this.str.split('').reverse().join('')
  }
},
  
}
</script>

<style>
</style>
